package com.nbot.server.mapper.cluster;

import com.nbot.server.domain.Orcalarm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrcalarmMapper {
    int deleteByPrimaryKey(String id);

    int insert(Orcalarm record);

    int insertSelective(Orcalarm record);

    Orcalarm selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Orcalarm record);

    int updateByPrimaryKey(Orcalarm record);

    List<Orcalarm> listAll();


    int getCount();

    int getTodayCount();

    Orcalarm findLastOne();

    List<Orcalarm> findLastN(@Param("n") int n);
}